﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="主要产品产量表.aspx.cs" Inherits="syc.Juece.Report.主要产品产量表" %>

<head runat="server">
    <title></title>
    
</head>
<body>
   <script type="text/javascript" language="javascript" src="/common.js"></script>    
    <form id="form1" runat="server">
    <div id="wintop" class="wintop">主要产品产量表</div>
    <asp:Panel ID="Panel1" runat="server" CssClass="panel" GroupingText="查 询">  
        报表日期设置<br>
          报表生成日期：<asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" 
                Width="110px"></asp:TextBox>
                <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" /></asp:TextBox>
                
            <br />
        月初计日期：&nbsp;&nbsp;
        <asp:TextBox ID="RiQi2" runat="server" CssClass="intxt1" Width="110px"></asp:TextBox>
        <img align="middle" alt="" 
            onclick="makecalendar(document.getElementById('RiQi2').value, document.getElementById('RiQi2'));" 
            src="/Icons/29.png" /></asp:textbox> 年初计日期：<asp:TextBox ID="RiQi3" runat="server" CssClass="intxt1" 
                Width="110px"></asp:TextBox>
                <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi3').value, document.getElementById('RiQi3'));" /></asp:TextBox>
        <asp:Button ID="Button_Query"
            runat="server" Text="查 询" CssClass="smallbutton" UseSubmitBehavior="true" 
            onclick="Button_Query_Click"  />
        </asp:Panel>
      </div>
   <div id="tableExcel">
        <h2 style="text-align: center;">
            月产品产量汇总表</h2>
        <div align="center"> 
        <table  width="800px">
        <tr><td>填报单位:陕西石油材料有限公司</td><td><asp:Label ID="Label1" runat="server" Text="Label" style="text-align: right;">填报日期：<%=DateTime.Now.ToString("yyyy年MM月dd日") %></asp:Label></td>
            <td  align ="right">陕油统  材料厂B-701</td></tr>
        </table>
        <table  width="800px">
        <tr>
        <td align="center">        
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                DataSourceID="SqlDataSource1" Width="100%" 
                onrowdatabound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="品名" HeaderText="产品名称" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="单位" HeaderText="单位" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="本月计划产量" HeaderText="计划" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="本月实际产量" HeaderText="本月完成" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField  DataField="本月完成率" HeaderText="完成率%" 
                        DataFormatString="{0:0.00}">
                     <ItemStyle HorizontalAlign="Center" />   
                    </asp:BoundField>
                    <asp:BoundField DataField="本年计划产量" HeaderText="计划" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="本年实际产量" HeaderText="本月止完成" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="全年完成率" HeaderText="全年完成率%" 
                        DataFormatString="{0:0.00}">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                </Columns>
            </asp:GridView>        
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"
             ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
            ></asp:SqlDataSource>
        </td>
        </tr>
        </table>
        </div>
    
    </div>

    </form>
</body>
</html>
